/*
 * Окно справочника Страны
 */
package mops.view.window.country;

import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Modality;
import javafx.stage.Stage;

/**
 *
 * @author Жук Александр
 */
public final class CountryWindow {
   
    private final String CAPTION = "Справочник Страны";
    private final int WIDTH = 350;
    private final int HEIGHT = 200;
    
    public CountryWindow(final Stage aParentStage){
         StackPane countryLayout = new StackPane();
         
         //Таблица
         countryLayout.getChildren().add(new CountryTable());
         
         Scene countryScene = new Scene(countryLayout, this.WIDTH, this.HEIGHT);
 
         Stage countryStage = new Stage();
         countryStage.setTitle(this.CAPTION);
         countryStage.setScene(countryScene);
                
         countryStage.getIcons().add(aParentStage.getIcons().get(0));
                 
         countryStage.initModality(Modality.APPLICATION_MODAL);
                
         countryStage.show();
    }
    
}
